﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TjZheng.Framework;

namespace TjZheng.Example.MVC.Controllers
{
    public class UrlTestController : Controller
    {
        public ActionResult Index(string s1, string s2)
        {
            return Redirect("http://tjzheng.example.com/urltest/target?targeturl=" + Request.Url.AbsoluteUri.EncodeUrl());
        }

        public ActionResult Target(string targeturl)
        {
            return Content(targeturl);
        }
    }
}
